package com.maiji.cloud.mapper;

import com.maiji.cloud.entities.shopingmall.CapitalMainLog;
import com.baomidou.mybatisplus.mapper.BaseMapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CapitalMainLogMapper extends BaseMapper<CapitalMainLog> {

	/**
	 * 获得流水列表
	 * @param start
	 * @return
	 */
	List<CapitalMainLog> getCapitalMainLogListByUserId(@Param("changeType")Integer changeType,@Param("capitalType")Integer capitalType,@Param("remarks")List<Integer> remarks, @Param("userId")String userId,@Param("startTime")String startTime,@Param("endTime")String endTime, @Param("start")Integer start, @Param("limit")Integer limit);
	
	/**
	 * 统计
	 * @param capitalType
	 * @param userId
	 * @param changeType
	 * @return
	 */
	Double sumMoney(@Param("capitalType")Integer capitalType, @Param("userId")String userId,@Param("changeType")Integer changeType,@Param("remarks")List<Integer> remarks);
	
}
            